home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
lcppb.zip
/
LCPPANS.ZIP
/
STRHEAP.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-08
|
430b
|
22 lines
// strheap.cpp -- Create string on heap
#include <iostream.h>
#include <stdio.h>
main()
{
char *string = new char[129];
cout << "Enter string: ";
gets(string);
cout << "You entered : " << string;
}
// Copyright (c) 1990 by Tom Swan. All rights reserved
// Revision 1.00 Date: 12/05/1990 Time: 07:54 am
// Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
// Converted for Borland C++ 2.0